<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserToken extends Model
{
    protected $fillable = [
        'wechat_user_id',
        'token',
        'expired_at'
    ];

    protected $dates = [
        'expired_at'
    ];

    public function user()
    {
        return $this->belongsTo(WechatUser::class, 'wechat_user_id');
    }
} 